package com.itheima.service.impl;

import com.itheima.pojo.User;
import com.itheima.service.UserService;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class UserServiceImpl implements UserService {
    private String name;
    private List<String> list;
    private Map<String,User> userMap;
    private Set<String> set;
    private Properties properties;
    private String[] addrs;

    public UserServiceImpl() {
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setAddrs(String[] addrs) {
        this.addrs = addrs;
    }

    public UserServiceImpl(String name) {
        this.name = name;
    }


    public void add() {
        System.out.println("String"+ name);
        System.out.println("List<String>"+ list);
        System.out.println("Map<String,User>"+ userMap);
        System.out.println("Set<String>"+ set);
        System.out.println("Properties"+ properties);
        System.out.println("String[]"+ addrs);

    }
}
